import request from '@/utils/request'

// 查询轮播列表列表
export function listSlideType(query) {
  return request({
    url: '/smartservice/slideType/list',
    method: 'get',
    params: query
  })
}

// 查询轮播列表详细
export function getSlideType(slideTypeId) {
  return request({
    url: '/smartservice/slideType/' + slideTypeId,
    method: 'get'
  })
}

// 新增轮播列表
export function addSlideType(data) {
  return request({
    url: '/smartservice/slideType',
    method: 'post',
    data: data
  })
}

// 修改轮播列表
export function updateSlideType(data) {
  return request({
    url: '/smartservice/slideType',
    method: 'put',
    data: data
  })
}

// 删除轮播列表
export function delSlideType(slideTypeId) {
  return request({
    url: '/smartservice/slideType/' + slideTypeId,
    method: 'delete'
  })
}

// 导出轮播列表
export function exportSlideType(query) {
  return request({
    url: '/smartservice/slideType/export',
    method: 'get',
    params: query
  })
}